/******************************

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <iostream>
//for setw, precision()
#include <iomanip>
using namespace std;





void tichMaTran(int a[100][100], int b[100][100], int c[100][100], int m, int n, int p)
{
	for(int i=0; i<m; i++){
		//int s = 0;
		for (int j =0; j<p; j++){
			c[i][j] = 0;
			for(int k=0; k<n; k++){

				c[i][j] += a[i][k]*b[k][j];
			}
		}
	}

}

void in (int a[100][100], int m, int n,char *name){
	cout << "\nMa tran "<<name<<": \n";
	for(int i=0; i<m; i++){
		for(int j=0; j<n; j++){
			cout << a[i][j]<<"\t";

		}
		cout << "\n";
	}
}
int tichVecTor(int v1[], int v2[], int n)
{
	int s = 0;
	for(int i =0; i<n; i++){
		s += v1[i]*v2[i];
	}
	return s;
}

void nhap(int a[100][100], int m,int n, char * name)
{
	cout << "\nNhap ma tran "<<name<<": \n";
	for(int i=0; i<m; i++){
		for (int j =0; j<n; j++){
			cout << "Nhap a["<<i<<"]["<<j<<"]";
			cin >> a[i][j];
		}
	}
}
void main(){
	int m =2, n =3, p =2;

	int a[100][100], b[100][100], c[100][100];
	nhap(a, m, n, "a");
	in(a,m,n, "a");
	nhap(b, n, p, "b");
	in(b,n,p, "b");
	tichMaTran(a,b,c,m,n,p);
	in(c, m, p, "c");
	getch();

}

/**********************************/